import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Container1 from '@/components/index/Container1'
import index from '@/components/index/Index'
import Model from '@/components/model/ModelManager'
import Property from "@/components/property/PropertyManager"
import Category from '@/components/category/Category'
import Merchant from '@/components/merchant/Merchant'
import ModelImport from '@/components/model-import/ModelTable'
import AdminManager from '@/components/admin/AdminManager'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',component: Login,name: 'login'
    },
    {
      path: '/',component: Container1,name: 'main',
      children: [
        {path: '/index', component: index,name:'index'},
        {path: '/model',component: Model,name:'model'},
        {path: '/property',component: Property,name:'property'},
        {path: '/category',component: Category,name:'category'},
        {path: '/merchant',component: Merchant,name:'merchant'},
        {path: '/modelimport',component: ModelImport,name:'modelimport'},
        {path: '/admin',component: AdminManager,name:'admin'}
      ]
    }
  ]
})
